FROM openjdk:17
ADD ./*.jar cloud-order-1.0-RELEASES.jar
ARG JAVA_OPTS="-Xmx500M -Xms500M -Xmn500M -XX:MaxMetaspaceSize=128M -XX:MetaspaceSize=128M"
EXPOSE 8080
CMD ["sh", "-c", "java $JAVA_OPTS -jar cloud-order-1.0-RELEASES.jar"]


